package com.yykj.drup.server.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * @Author zeng
 * @Date 2022/3/17
 */
@ApiModel("处方-药店信息")
@Data
public class PrescriptionStoreProductDto {

    @ApiModelProperty(value = "处方药店主键ID",required = true)
    @NotNull(message = "处方药店主键ID")
    private Integer id;

    @ApiModelProperty(value = "处方药店名称",required = true)
    @NotEmpty(message = "处方药店名称:shopName")
    private String shopName;

    @ApiModelProperty(value = "处方药店图标",required = true)
    @NotEmpty(message = "处方药店图标:headimgurl")
    private String headimgurl;

    @ApiModelProperty(value = "处方药品数量",required = true)
    @NotNull(message = "处方药品数量:productNumber")
    private Integer productNumber;

    @ApiModelProperty("药店药品总额")
    private BigDecimal totalPrice;

    @ApiModelProperty("处方药店药品信息")
    private List<PrescriptionProductDto> products;



}
